package com.jiafa.wjxt.service;

import com.jiafa.wjxt.entity.TUserProject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiafa.wjxt.util.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiafa
 * @since 2021-05-31
 */
public interface TUserProjectService extends IService<TUserProject> {
    // 显示我的问卷
    Result myProjects(Long current, Long size, Long userId, Boolean isDeleted,String title);

    // 显示已删除的问卷
    Result RecycleProjects(Long userId,Boolean isDeleted);

    // 根据问卷标题查询问卷
    Result queryByTitle(String title);

    // 根据projectKey查询问卷
    TUserProject queryByKey(String projectKey);

    // 查询问卷的item
    Result queryProjectItem(String projectKey);

    Result changeStats(String projectKey);

    Result toStop(String projectKey);

    Result toDelete(String projectKey);

    Result recovery(String projectKey);
}
